from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import User


class UserModelAdmin(UserAdmin):
    """用户信息的模型管理器"""
    list_display = ('username', 'is_staff', 'is_superuser')
    pass


admin.site.register(User, UserModelAdmin)
